package edu.mama.college.service;

import edu.mama.college.mapper.UserMapper;
import edu.mama.college.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User findByMobileAndPassword(String mobile, String password) {
        return userMapper.findByMobileAndPassword(mobile, password);
    }

    public void register(User user) {
        userMapper.register(user);
    }
}
